package com.hyacinth.lotterysystem.common.errocde;

/**
 * @Author: Yun
 * @Date: 2025/6/10
 */
public interface ServiceErrorCodeConstants {
    // -------- 人员模块错误码 ----------
    ErrorCode REGISTER_INFO_IS_EMPTY = new ErrorCode(1000, "用户注册信息为空");
    ErrorCode MAIL_ERROR = new ErrorCode(1001, "邮箱格式错误");
    ErrorCode PHONE_NUMBER_ERROR = new ErrorCode(1002, "手机号格式错误");
    ErrorCode MAIL_USED = new ErrorCode(1003, "邮箱已被使用");
    ErrorCode PHONE_NUMBER_USED = new ErrorCode(1004, "手机号已被使用");
    ErrorCode PASSWORD_SHORT_ERROR = new ErrorCode(1005, "填写密码过短");
    ErrorCode PASSWORD_IS_EMPTY = new ErrorCode(1006, "密码为空");
    ErrorCode IDENTITY_ERROR = new ErrorCode(10007, "身份错误");
    ErrorCode LOGIN_INFO_ERROR = new ErrorCode(1008, "登录信息错误");
    ErrorCode LOGIN_NOT_EXISTS = new ErrorCode(1009, "登录信息不存在");
    ErrorCode VERIFICATION_CODE_ERROR = new ErrorCode(1010, "验证码错误");

    // -------- 活动模块错误码 ----------
    ErrorCode CREATE_ACTIVITY_IS_EMPTY = new ErrorCode(2000, "活动信息为空");
    ErrorCode ACTIVITY_USER_NOT_EXISTS = new ErrorCode(2001, "活动人员不存在");
    ErrorCode ACTIVITY_PRIZE_NOT_EXISTS = new ErrorCode(2002, "活动奖品不存在");
    ErrorCode ACTIVITY_PRIZE_GT_PEOPLE = new ErrorCode(2004, "奖品数量大于参与人数,不符合分配规则");
    ErrorCode ACTIVITY_PRIZE_AMOUNT_ERROR = new ErrorCode(2005, "活动奖品等级设置错误");
    ErrorCode ACTIVITY_STATUS_CONVERT_ERROR = new ErrorCode(2006, "活动状态转换失败");
    ErrorCode CACHE_ACTIVITY_ID_IS_EMPTY = new ErrorCode(2007, "缓存活动id为空");
    ErrorCode CACHE_ACTIVITY_ID_IS_ERROR = new ErrorCode(2007, "缓存活动id为空");


    // -------- 奖品模块错误码 ----------


    // -------- 抽奖模块错误码 ----------
    ErrorCode ACTIVITY_ERROR = new ErrorCode(4000, "抽奖活动异常");
    ErrorCode PRIZE_COMPLETED = new ErrorCode(4001, "奖品已被抽取");
    ErrorCode WINNER_PRIZE_AMOUNT_ERROR = new ErrorCode(4002, "中奖者人数异常");


    // -------- 图片错误码 ----------
    ErrorCode PICTURE_UPLOAD_ERROR = new ErrorCode(5001, "图片上传失败");
}
